import numpy as np
a = np.random.randint(5,11,size=(2,3))
print(a)

#arange()函数
a1 = np.arange(4)
print(a1)
a2 = np.arange(1,10,2)
print(a2)
a3 = np.arange(0,1,0.2)
print(a3)
a4 = np.arange(5,0,-1)
print(a4)

#linspace()函数
a5 = np.linspace(5,12, num=5,  endpoint=False, retstep=True)
print(a5)

#logspace()函数
##指数区间为2,8左闭右开元素个数为5个，底数为2
a6 = np.logspace(2,8, num=5, endpoint=False, base=2)
print(a6)